#!/usr/bin/env bash

set -e -u -x
source ./tasks/helpers.sh

set -x
(
  cd "$SOURCE_DIR/src/api-umbrella/admin-ui"
  PATH="$DEV_PATH" pnpm run lint:js
  PATH="$DEV_PATH" pnpm run lint:hbs
)

set -x
(
  cd "$SOURCE_DIR/src/api-umbrella/example-website"
  PATH="$DEV_PATH" pnpm run lint
  PATH="$DEV_PATH" pnpm run prettier:check
)

(
  cd "$SOURCE_DIR/src/api-umbrella/web-app"
  PATH="$DEV_PATH" ./node_modules/.bin/eslint .
)
